import App from './App'
import Commond from './utils/commond.js';

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif


// ---------------------- VUE3 -------------------
const CommondPlugin = {
  install(app) {
    app.config.globalProperties.$comm = new Commond();
  }
};

// #ifdef VUE3
import { createSSRApp } from 'vue'
// Vue.prototype.Comm=new Commond();

console.log('vue3');

export function createApp() {
  const app = createSSRApp(App)
  app.use(CommondPlugin);
  return {
    app
  }
}
// #endif